From: Lars Ingebrigtsen Date: Thu, 20 Aug 2020 23:29:26 +0000 (+0200) Subject: Make image cache lookups work again after previous patch X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~5706 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=165fd028d858daee3e08e4308b24e5d497971c77;p=emacs.git Make image cache lookups work again after previous patch * src/image.c (search_image_cache): Fix reversed logic in previous patch. --- diff --git a/src/image.c b/src/image.c index 643b3d0a1f4..123de54ba27 100644 --- a/src/image.c +++ b/src/image.c @@ -1633,7 +1633,7 @@ search_image_cache (struct frame *f, Lisp_Object spec, EMACS_UINT hash) for (img = c->buckets[i]; img; img = img->next) if (img->hash == hash - && !equal_lists (img->spec, spec) + && equal_lists (img->spec, spec) && img->frame_foreground == FRAME_FOREGROUND_PIXEL (f) && img->frame_background == FRAME_BACKGROUND_PIXEL (f)) break;